package database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

import constants.Constants;


	
	@Entity
	@Table(name = "t_action")
	@Proxy(lazy = false)
public class MAction {

	  private int id;
	  private String name;
	  private int actionId=Constants.NO_ACTION;
	  private MWorldObject objectReference;
	  	  

	  // ----------------------------------------

	  @Id
	  @GeneratedValue(strategy = GenerationType.AUTO)
	  public int getId() {
	    return id;
	  }


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}

	public void setId(int id) {
		this.id = id;
	}


	public int getActionId() {
		return actionId;
	}


	public void setActionId(int actionId) {
		this.actionId = actionId;
	}

	@ManyToOne
	public MWorldObject getObjectReference() {
		return objectReference;
	}


	public void setObjectReference(MWorldObject objectReference) {
		this.objectReference = objectReference;
	}

	
	  
	  
}
